package com.example.exam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 题库
 * </p>
 *
 * @author author
 * @since 2024-03-28
 */
@Data
@TableName("exam.question_bank")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Topic implements Serializable {
    public static final Integer QUESTION_STATUS_HIDDEN = 0;
    public static final Integer QUESTION_STATUS_ACTIVE = 1;
    public static final Integer QUESTION_STATUS_DELETE = 1;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 类型 0.单选择题、1.判断题、2.简答题。3.多选择题
     */
    @TableField("`type`")
    private Integer type;
    /**
     * 创建人ID
     */
    @TableField("`userId`")
    private String userId;
    /**
     * 题干
     */
    private String content;

    private String img;
    /**
     * 正确选项
     */
    private String answer;

    /**
     * 难度 1-5
     */
    private String difficulty;
    /**
     * 科目id
     */
    @TableField("`subject`")
    private String subject;

    /**
     * 0.禁用  1.启用
     */
    @TableField("`status`")
    private Integer status;

    /**
     * 标签
     */
    //private String tag;
}
